<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]) . "/SmartTuition/SmartTuition.Model"; 
// including base class, EntityWithID
require_once("$root/Models/Base/EntityWithID.php");

class Teacher extends EntityWithID
{
    private $firstName;
    private $lastName;
    private $position;

    function __construct($id, $name, $lastName, $position) {
        parent::__construct($id);
        $this->firstName = $name;
        $this->lastName = $lastName;
        $this->position = $position;
        $this->columns = "FirstName, LastName, Position";
    }

    public function getFirstName() {
        return $this->firstName;
    }

    public function getLastName() {
        return $this->lastName;
    }

    public function getPosition() {
        return $this->position;
    }

    public function getValues() {
        $str = "'" .  $this->firstName .  "','" . $this->lastName .  "','" . $this->position . "'";
        return $str;
    }
}